home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C & C++ Multimedia Cyber Classroom
/
C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso
/
src
/
fig09_07.jar
/
Ch09
/
Fig09_07
/
Point2.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1997-10-26
|
439b
|
23 lines
// Fig. 9.7: point2.cpp
// Member function definitions for class Point
#include <iostream.h>
#include "point2.h"
// Constructor for class Point
Point::Point( int a, int b )
{
x = a;
y = b;
cout << "Point constructor: "
<< '[' << x << ", " << y << ']' << endl;
}
// Destructor for class Point
Point::~Point()
{
cout << "Point destructor: "
<< '[' << x << ", " << y << ']' << endl;
}